<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags"%>

<%@include file="/common/head.jsp" %>

<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
		<form action="${ctx }/admin/sms/save?id=${n.id }" id="detail-form" class="form-horizontal" method="post">
			<div class="form-group">
				 <!-- 手机号码 -->
                 <label class="col-sm-2 control-label">手机号码</label>
                 <div class="col-sm-4">
                 	<input type="text" class="form-control" name="mobile" value="${n.mobile }">
                 </div>
                 
				 <!-- 验证码 -->
                 <label class="col-sm-2 control-label">验证码</label>
                 <div class="col-sm-4">
                 	<input type="text" class="form-control" name="code" value="${n.code }">
                 </div>
            </div>
            <div class="form-group">     
                 
				 <!-- 完整的短信消息 -->
                 <label class="col-sm-2 control-label">完整的短信消息</label>
                 <div class="col-sm-4">
                 	<input type="text" class="form-control" name="msg" value="${n.msg }">
                 </div>
                 
				 <!-- 1, 更改密码 -->
                 <label class="col-sm-2 control-label">1, 更改密码</label>
                 <div class="col-sm-4">
                 	${enum:detail('SmsType', 'type', n.type)}
                 </div>
            </div>
            <div class="form-group">     
                 
				 <!--  失效时间 -->
                 <label class="col-sm-2 control-label"> 失效时间</label>
                 <div class="col-sm-4">
                 	<input type="text" class="form-control" name="expireDate" value="<fmt:formatDate value='${n.expireDate }' pattern=''/>" onclick="laydate({format: ''})">
                 </div>
                 
				 <!-- 是否已经使用了，默认0 -->
                 <label class="col-sm-2 control-label">是否已经使用了，默认0</label>
                 <div class="col-sm-4">
                 	<input type="text" class="form-control" name="used" value="${n.used }">
                 </div>
            </div>
            <div class="form-group">     
                 
             </div>	
        	
		</form>
</div>

<%@include file="/common/foot.jsp" %>

</body>
</html>
